<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Percentage Price Oscillator</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.trader-plus-dm.html">trader_plus_dm</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.trader-roc.html">trader_roc</a></div>
 <div class="up"><a href="ref.trader.html">Trader 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.trader-ppo" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">trader_ppo</h1>
  <p class="verinfo">(PECL trader &gt;= 0.2.0)</p><p class="refpurpose"><span class="refname">trader_ppo</span> &mdash; <span class="dc-title">Percentage Price Oscillator</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.trader-ppo-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">array</span> <span class="methodname"><strong>trader_ppo</strong></span>
    ( <span class="methodparam"><span class="type">array</span> <code class="parameter">$real</code></span>
   [, <span class="methodparam"><span class="type">integer</span> <code class="parameter">$fastPeriod</code></span>
   [, <span class="methodparam"><span class="type">integer</span> <code class="parameter">$slowPeriod</code></span>
   [, <span class="methodparam"><span class="type">integer</span> <code class="parameter">$mAType</code></span>
  ]]] )</div>

  <p class="para rdfs-comment">

  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.trader-ppo-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>
<em><code class="parameter">real</code></em></dt>

    <dd>

     <p class="para">
      浮点数数组。
     </p>
    </dd>

   
   
    <dt>
<em><code class="parameter">fastPeriod</code></em></dt>

    <dd>

     <p class="para">
      Number of period for the fast MA. Valid range from 2 to 100000.
     </p>
    </dd>

   
   
    <dt>
<em><code class="parameter">slowPeriod</code></em></dt>

    <dd>

     <p class="para">
      Number of period for the slow MA. Valid range from 2 to 100000.
     </p>
    </dd>

   
   
    <dt>
<em><code class="parameter">mAType</code></em></dt>

    <dd>

     <p class="para">
      Type of Moving Average. <a href="trader.constants.html" class="link">TRADER_MA_TYPE_*</a> series of constants should be used.
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.trader-ppo-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">Returns an array with calculated data or false on failure.</p>
 </div>



</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.trader-plus-dm.html">trader_plus_dm</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.trader-roc.html">trader_roc</a></div>
 <div class="up"><a href="ref.trader.html">Trader 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
